package com.concurrent.sample.business.entity;

import com.concurrent.sample.business.consts.enums.FlowTypeEnum;
import com.concurrent.sample.business.consts.enums.OrderStatusEnum;
import com.concurrent.sample.business.consts.enums.SideEnum;
import com.concurrent.sample.common.entity.AuditingEntity;
import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import lombok.Data;
import lombok.experimental.Accessors;

@Entity
@Data
@Accessors(chain = true)
public class OrderEntity extends AuditingEntity {

  private Long positionId;

  private Long eventId;

  private String customerNo;

  @Enumerated(EnumType.STRING)
  private FlowTypeEnum flowStatus;

  @Enumerated(EnumType.STRING)
  private OrderStatusEnum orderStatus;

  private String symbol;

  @Enumerated(EnumType.STRING)
  private SideEnum side;

  private BigDecimal execPrice;

  private Long orderQty;

  private Long leaveQty;

  private String memo;

}
